<?php
		/* leave menu */
		$debug_query = $db->Execute("UPDATE {$db_prefix}ships SET on_planet='N', planet_id=0, storage_planet_id=0 WHERE ship_id=$shipinfo[ship_id]");
		db_op_result($debug_query,__LINE__,__FILE__);

		$template_object->assign("result", $l_planet_left);
		$template_object->assign("planet_id", $planet_id);
		$template_object->assign("l_clickme", $l_clickme);
		$template_object->assign("l_toplanetmenu", $l_toplanetmenu);
		$template_object->assign("l_igb_term", $l_igb_term);
		$template_object->assign("allow_ibank", $allow_ibank);
		$template_object->assign("l_by_placebounty", $l_by_placebounty);
		$template_object->assign("gotomain", $l_global_mmenu);
		$template_object->display($templatename."planet_ownedgeneric2.tpl");
		include ("footer.php");
		die();

?>